<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@page import="gruppe7.util.Html" %>
<%@page import="gruppe7.data.User" %>
<%@page import="gruppe7.data.UserException" %>
<%@page import="gruppe7.data.UserController" %>

<html>
<%
Html html = new Html(); 
UserController uc = UserController.getInstance();
%>

<% out.print(html.setHeader("Contact")); %>

<body>
<jsp:include page="main_links.jsp" />


<div id ="content">
<div id="content-left-contact">

<img src='images/contact.png' /><p>Write to us on the following address: 
<a href='mailto:tlrs-info@fantasia.com'>tlrs-info@fantasia.com</a></p><br/>
</div>
<div id='lower-content'>
<table class='contact'>
<form action='ContactSendMail' method='post'>
<tr><td>... or fill out the online form!</td><td></td></tr>
<tr><td>Your name</td><td><input type='text' name='name' value='

<%
if (uc.isValidSession(request)) out.print(uc.getSessionUser(request).getUsername());

%>'/></td></tr>
<tr><td>Your email</td><td><input type='text' name='email' value=''/></td></tr>
<tr><td>Your message</td><td><textarea name='message' rows='8'></textarea></td></tr>
<tr><td></td><td align='right'><input class='submit' type='submit' value='send' /></td></tr>
</form>
</table>

</div>
</div>

<% out.print(html.setFooter()); %>
